let vm = new Vue({
    el: "#app",
    data: {
        currentIndexOne: 0,//保存点击按钮的下标
        currentIndexTwo: 0,//保存底部按钮的下标
        //综合拍戏数据
        arr: ['综合排序', '距离最近', '销量最高', '筛选'],
        //年度热卖数据
        arr1: ['年货节热卖', '驿站联盟', '满减优惠', '品质联盟'],
        //商家列表数据
        list: [

            { pic: 'imgs/1.png', name: '金百万烤鸭（苏家坨店）', score: 4.3, xl: 1632, qs: 20, ps: 3, yj: 6, minutes: 47, km: 3.9, manjian: ["35减12", "70减35", "1000减45", "150减60"] },
            { pic: 'imgs/2.png', name: '稻香金源饺子馆', score: 4.4, xl: 230, qs: 20, ps: 3.5, yj: 4.5, minutes: 44, km: 2.5, manjian: ["40减5", "69减8", "100减10", "支持自取"] }
        ],
        // 按钮数据
        arr2: ['首页', '订单', '我的']
    },
    methods: {
        handleClickOne(index) {
            this.currentIndexOne = index;//保存点击的按钮下标
        },
        handleClickTwo(index) {
            this.currentIndexTwo = index;//保存点击的按钮下标
        }
    },
})